<%--
  Created by IntelliJ IDEA.
  User: Root404
  Date: 2023/5/11
  Time: 10:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h1>
    <%
        Cookie[] cookies = request.getCookies();
        if(cookies!=null){
            for (int i=0;i<cookies.length;i++){
                if(cookies[i]!=null&&cookies[i].getName().equals("user")){
                        break;
                }
                if(i==cookies.length-1){
                    response.sendRedirect("login.jsp?feifa=t");
                }
            }
        }
    %>
    <%=session.getId()%>
  欢迎  <%=request.getParameter("name")%>
    <%=session.getAttribute("user")%>
    <%
        String[] cks = request.getParameterValues("ck");
        if(cks!=null){
            for(String xjj : cks){
                out.print(xjj+".....");
            }
        }
    %>
</h1>
</body>
</html>
